// 校验规则  
	const qiugou_rules = {  
	  area: [  
	    {  
	      required: true,  
	      message: '请选择区域商圈',  
	      trigger: [ 'change'],  
	    },  
	  ], 
	  huxing: [
	    {  
	      required: true,  
	      message: '请输入您想住的户型',  
	      trigger: [  'change'],  
	    },  
	  ], 
	  price:[
		  {
		    required: true,  
		    message: '请输入您期望的价格',  
		    trigger: [  'change'],  
		  } 
	  ],
	  village_name:[
	  		  {
	  		    required: true,  
	  		    message: '请输入小区名称',  
	  		    trigger: [ 'change'],  
	  		  },  
	  		  {
	  			  type: 'string',
	  			  message: '请输入字符串',
	  			   trigger: [  'change'],  
	  		  }
	  ],
	  nickname:[
	  		  {
	  		    required: true,  
	  		    message: '请输入称呼',  
	  		    trigger: [ 'change'],  
	  		  },  
	  		  {
	  			  type: 'string',
	  			  message: '请输入字符串',
	  			   trigger: [ 'change'],  
	  		  }
	  ],
	  mobile :[
		  {
			  required: true,
			  message:'请输入您的手机号码',
			  trigger: [ 'change'],  
		  },
		  { 
			validator: (rule, value, callback) => {			 
				// 上面有说，返回true表示校验通过，返回false表示不通过
				// uni.$u.test.mobile()就是返回true或者false的
				return uni.$u.test.mobile(value);				 
			},
			message: '手机号码不正确',
			// 触发器可以同时用blur和change
			trigger: ['change'  ],
		}
	  ] 
	};  

export { qiugou_rules } 
 